﻿using BoilerplateWPF.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace BoilerplateWPF.Models
{
    /// <summary>
    /// 页面信息类 用于导航栏 页面切换
    /// </summary>
    public class PageInfo
    {
        public string Key { get; set; }
        public PageType Type { get; set; }
        public Func<UIElement> CreateFunction { get; set; }

        public PageInfo(string key, PageType type, Func<UIElement> createFunction)
        {
            Key = key;
            Type = type;
            CreateFunction = createFunction;
        }
    }
}
